package logger

import (
	"fmt"
	"reflect"
)

type Field struct {
	Key   string
	Type  reflect.Type
	Value interface{}
}

func Reflect(key string, valType reflect.Type, val interface{}) Field {
	return Field{Key: key, Type: valType, Value: val}
}

func Any(key string, value interface{}) Field {
	valType := reflect.TypeOf(value)

	return Reflect(key, valType, fmt.Sprintf("%v", value))
}
